package model;

import java.util.Date;

public class JobRes {
	int jobResId;
	String goal;
	String action;
	Date target;
	Date complete;
	String comment;
	String status;
	Employee employee;
	
	public JobRes() {}

	public JobRes(int jobResId, String goal, String action, Date target,
			Date complete, String comment, String status, Employee employee) {
		super();
		this.jobResId = jobResId;
		this.goal = goal;
		this.action = action;
		this.target = target;
		this.complete = complete;
		this.comment = comment;
		this.status = status;
		this.employee = employee;
	}

	public int getJobResId() {
		return jobResId;
	}

	public void setJobResId(int jobResId) {
		this.jobResId = jobResId;
	}

	public String getGoal() {
		return goal;
	}

	public void setGoal(String goal) {
		this.goal = goal;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Date getTarget() {
		return target;
	}

	public void setTarget(Date target) {
		this.target = target;
	}

	public Date getComplete() {
		return complete;
	}

	public void setComplete(Date complete) {
		this.complete = complete;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	};
	
	
	public String toString() {
		StringBuilder str = new StringBuilder("");
		str.append(jobResId).append("-").append(goal).append("-").append(action).append("-").append(target.toString());
		str.append("-").append(complete.toString()).append("-").append(comment).append("-").append(status);
		str.append("-").append(employee.getUsername());
		
		return str.toString();
	}
}
